package com.qq.first_project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qq.first_project.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qq.first_project.entity.vo.CommentVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Qiu
 * @since 2023-01-30
 */
public interface CommentService extends IService<Comment> {
    //查询评论列表
    List<Comment> listComment(Long blogId);

    //保存评论
    int saveComment(Comment comment);

    //查询所有评论
    IPage<CommentVo> listAll(Page<CommentVo> page,String name);

    //更新评论
    int updateCommentById(CommentVo commentVo);
}
